package com.xu.mode.factory;

/**
 * 加法类进行数学加
 */
public class CalculationAdd extends Calculation {
    @Override
    public double getResuit() {
        return numberA + numberB;
    }

    public static void main(String[] args) {
        String name = getName();
    }

    public static String getName() {
        return "NIhao";
    }
}
